<?php

$this->headTitle("My Email");

?>

<p><a href="<?php echo $this->url(array('controller'=>'list', 
        'action'=>'add'));?>">Add new email</a></p>
<table>

<?php

echo $this->form;

?>

<tr>
    <th>Name</th>
    
    <th>Owner Name</th>
    
    <th>Owner Email</th>
    
    <th>Reply Email</th>
    
    <th>&nbsp;</th>
</tr>
<?php foreach($this->list as $list) : ?>

<tr>
    <td><?php echo $this->escape($list->name);?></td>
    
    <td><?php echo $this->escape($list->owner_name);?></td>
    
    <td><?php echo $this->escape($list->owner_email);?></td>
    
    <td><?php echo $this->escape($list->reply_email);?></td>
    
    <td>
        <a href="<?php echo $this->url(array('controller'=>'list', 
            'action'=>'edit', 'id'=>$list->id));?>">Edit</a>
            
        <a href="<?php echo $this->url(array('controller'=>'list', 
            'action'=>'delete', 'id'=>$list->id));?>">Delete</a>
    </td>
</tr>

<?php endforeach; ?>

</table>